import axios from '../utils/request'
import base from './base'

const api ={
    //登录
    getLogin(params){
        return axios.post(base.baseUrl+base.login,params)
    },
    //注册
    getRegister(params){
        return axios.post(base.baseUrl+base.register,params)
    },
    //修改
    upDataForget(params){
        return axios.get(base.baseUrl+base.updateForget,{params})
    },
    //城市
    getCity(){
        return axios.get(base.baseUrl1+base.city)
    },
    //轮播图
    getBanner(){
        return axios.get(base.baseUrl1+base.banners)
    },
    //小图导航
    getNav(){
        return axios.get(base.baseUrl1+base.nav)
    },
    //两个小图
    getNavBar(){
        return axios.get(base.baseUrl1+base.navBar)
    },
    //最热店铺
    getHotShop(){
        return axios.get(base.baseUrl1+base.hotShop)
    },
    //人才库
    getTalents(){
        return axios.get(base.baseUrl1+base.talents)
    },
    //为你推荐
    getRecommend(){
        return axios.get(base.baseUrl1+base.recommend)
    },
    //美甲资讯
    getManicure(){
        return axios.get(base.baseUrl1+base.manicure)
    },
    //店铺
    getShopData(){
        return axios.get(base.baseUrl1+base.shopData)
    },
    //商城导航
    getShopping(){
        return axios.get(base.baseUrl1+base.shopping)
    },
    //限时秒杀
    getXsms(){
        return axios.get(base.baseUrl1+base.xsms)
    },
    //精选套装
    getJxtz(){
        return axios.get(base.baseUrl1+base.jxtz)
    }
    
}

export default api